import type { QuestionItemType } from './question'
import type { User } from './user'

export interface PaperDataType {
  id: number | null
  paperType: number | null
  subjectId: number | null
  paperTitle: string
  suggestTime: number | null
  edu: number[]
  limitDateTime: string[]
  titleItems: TitleItem[]
  score: number
  status?: number
  create_time?: Date
  create_user?: string
  update_time?: Date
  update_user?: string
  faceStatus?: string
}

export interface TitleItem {
  name: string
  questionItem: QuestionItemType[]
}

export interface PaperInfoDataType {
  id: number | null
  paperType: number | null
  subjectId: number | null
  paperTitle: string
  suggestTime: number | null
  edu: number[]
  limitDateTime: string[]
  titleItems: TitleItem[]
  score: number
  status: number
  create_time: Date
  create_user: string
  question_count: number
}

export interface PaperStuListType extends User {
  ipaddress: string
  face_image: string
  className: string
  collegeName: string
  departmentName: string
  faceImage2?: string
  linkStatus?: string
}
